﻿@model IEnumerable<Sanpham>

@{
    ViewBag.Title = "Sản Phẩm";
}
<div class="panel panel-default" style="margin-left:-20px;margin-right:-20px;"> <div class="panel-heading">Thông tin sản phẩm</div></div>
<div style="margin-left:-25px;margin-right:-25px;margin-top:-20px;">
    @foreach (var p in Model)
    {
        <div class="col-md-4">
            <ul class="box">
                <li class="panel-warning panel-heading">@p.Tensanpham</li>
                <li><a href="/Sanpham/Detail/@p.Id"><img src="/images/products/@p.Hinh"></a></li>
                <li>@Html.FormatValue(p.Gia, "{0:c}")</li>
            </ul>
        </div>
    }
</div>
    <style>
        .box {
            padding: 0;
            margin: 15px 0;
            list-style: none;
            box-shadow: 0 0 5px blue;
            border-radius: 5px;
            text-align: center;
            font-size: smaller;
        }

            .box img {
                max-width: 95%;
                height: 150px;
            }
    </style>
